# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=in-sync
pkgver=1.1
pkgrel=0
pkgdesc="inotify-triggered file synchronization"
url="https://git.alpinelinux.org/cgit/aports/tree/main/in-sync"
arch="noarch"
license="GPL-2.0-only"
depends="inotify-tools rsync /bin/sh"
subpackages="$pkgname-openrc"
source="in-sync in-sync.conf in-sync.initd"
options="!check" # No testsuite

package() {
	install -D -m 755 "$srcdir/in-sync" "$pkgdir/usr/sbin/in-sync"
	install -D -m 644 "$srcdir/in-sync.conf" "$pkgdir/etc/in-sync.conf"
	install -D -m 755 "$srcdir/in-sync.initd" "$pkgdir/etc/init.d/in-sync"
}

sha512sums="e525963135dbf185385fc1739b9241efd149ca14b9198eb52c3667f5ba13bbc924b7192d937179dde8eab2edff0e7d108b72ef75ef5adb0320202cf3838f1c7d  in-sync
27f1f36437f245e3555d598228ddc81c9ddc217fc54aadaa4135cb3b2794559b485c220e3d481efb600f5386f41af8566c409b6353e9d3f563dfce08a9e9bf78  in-sync.conf
de73c5375f734a0e1955ee7d2e3f2474e23ff0f8ddcd310a5eb774d208e4de13005d640a3c8fb22ac63b88040a6f7cc88b5723b8ac28829a3784aac2e04a7bd2  in-sync.initd"
